<?php
namespace Admin\Controller;
//工具类
use Admin\Common\Tools as T;
//逻辑类
use Admin\Common\Logic;

use Admin\Common\Api\UserApi;
class UserController extends BaseController {
    private $HAND_LOGINC   = null;
    private $HAND_USER   = null;
    //管理员用户列表
    public function index(){
       $this->display();

  }

   public function admin_list(){
     $title =I('request.title','','trim');
        if(!empty($title)){
           $where['name|email'] =array('like',"%{$title}%");
           // print_r($_where);exit;
           // $_where['parcelname']=array('like',"%{$keywords}%");
        }
         $where['is_activity'] = 1;
        $_where_order_field["listrows"] =I("request._listrows");
        $_where_order_field["where"] = $where;
        $_where_order_field["field"] = '*';
        $_where_order_field["order"] = 'id desc';
        $_datalist= $this->_getListsFromModel('User',$_where_order_field);
        // print_r($_datalist['page_html']);exit;
        $this->assign('lists',$_datalist);
        $this->display();

   }
}
